//
//  HJInformationLayout.h
//  KaiChat
//
//  Created by lx on 2024/3/11.
//

#import <Foundation/Foundation.h>
#import "HJInformationModel.h"

NS_ASSUME_NONNULL_BEGIN

@interface HJInformationLayout : NSObject

@property (nonatomic, assign) CGRect authorInfoRect;
@property (nonatomic, assign) CGRect operateRect;
@property (nonatomic, assign) CGRect contentRect;
@property (nonatomic, assign) CGRect foldButtonRect;
@property (nonatomic, assign) CGRect imagesRect;
@property (nonatomic, assign) CGFloat height;
@property (nonatomic, assign) BOOL isShowAllButton;
@property (nonatomic, assign) BOOL isFollow;
@property (nonatomic, assign) BOOL isFold;

@property (nonatomic, assign) BOOL isSendLikeRequest;

@property (nonatomic, assign, readonly) BOOL isVideo;
@property (nonatomic, strong) NSArray *mediaDatas;
@property (nonatomic, strong, nullable) NSArray *followDatas;

@property (nonatomic, strong, readonly) HJInformationModel *model;
@property (nonatomic, strong) NSAttributedString *attributedString;
+ (HJInformationLayout *)layoutWithModel:(HJInformationModel *)model;
- (void)calculateLayout;

+ (HJInformationLayout *)followLayoutWithDatas:(NSArray *)datas;

@end

NS_ASSUME_NONNULL_END
